(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/components/image-view/index" ], {
    2745: function(e, t, n) {
        n.r(t);
        var o = n("b1e2"), a = n.n(o);
        for (var i in o) [ "default" ].indexOf(i) < 0 && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(i);
        t.default = a.a;
    },
    "2ff9": function(e, t, n) {
        n.r(t);
        var o = n("342d"), a = n("2745");
        for (var i in a) [ "default" ].indexOf(i) < 0 && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(i);
        n("cb45");
        var l = n("f0c5"), r = Object(l.a)(a.default, o.b, o.c, !1, null, "35edd643", null, !1, o.a, void 0);
        t.default = r.exports;
    },
    "342d": function(e, t, n) {
        n.d(t, "b", function() {
            return o;
        }), n.d(t, "c", function() {
            return a;
        }), n.d(t, "a", function() {});
        var o = function() {
            var e = this, t = (e.$createElement, e._self._c, e.__get_style([ e.imageStyle ]));
            e.$mp.data = Object.assign({}, {
                $root: {
                    s0: t
                }
            });
        }, a = [];
    },
    b1e2: function(e, t, n) {
        (function(e) {
            var o = n("4ea4"), a = n("7037");
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var i = o(n("f121")), l = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" != a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = r(t);
                if (n && n.has(e)) return n.get(e);
                var o = {
                    __proto__: null
                }, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
                for (var l in e) if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                    var c = i ? Object.getOwnPropertyDescriptor(e, l) : null;
                    c && (c.get || c.set) ? Object.defineProperty(o, l, c) : o[l] = e[l];
                }
                return o.default = e, n && n.set(e, o), o;
            }(n("dd29"));
            function r(e) {
                if ("function" != typeof WeakMap) return null;
                var t = new WeakMap(), n = new WeakMap();
                return (r = function(e) {
                    return e ? n : t;
                })(e);
            }
            t.default = {
                name: "ImageView",
                props: {
                    src: {
                        type: String,
                        default: ""
                    },
                    bgColor: {
                        type: String,
                        default: "#efe7d9"
                    },
                    mode: {
                        type: String,
                        default: "aspectFill"
                    },
                    placeholder: {
                        type: Boolean,
                        default: !1
                    },
                    placeholderImg: {
                        type: String,
                        default: i.default.images.placeholder
                    },
                    placeholderMode: {
                        type: String,
                        default: ""
                    },
                    fadeIn: {
                        type: Boolean,
                        default: !1
                    },
                    fullView: {
                        type: Boolean,
                        default: !1
                    }
                },
                data: function() {
                    return {
                        loading: !0,
                        loadFailure: !1,
                        showImgAni: "",
                        viewPlaceholderImg: this.placeholder ? this.placeholderImg : ""
                    };
                },
                computed: {
                    imageStyle: function() {
                        var e = {};
                        return this.bgColor && (e.backgroundColor = this.bgColor), e;
                    }
                },
                methods: {
                    loadComplete: function() {
                        this.loading = !1, this.loadFailure = !1, this.$emit("downloadSuccess"), this.handleFadeIn();
                    },
                    loadFail: function(e) {
                        this.loading = !1, this.loadFailure = !0, this.$emit("downloadFail", e);
                    },
                    handleFadeIn: function() {
                        var e = this;
                        this.$nextTick(function() {
                            l.show(e, "showImgAni", 1, 500);
                        });
                    },
                    animationEnd: function() {
                        this.$emit("fadeShow");
                    },
                    fullViewImage: function() {
                        this.fullView && !this.loadFailure && e.previewImage({
                            showmenu: !1,
                            urls: [ this.src ]
                        });
                    },
                    _downloadImage: function(t) {
                        return new Promise(function(n, o) {
                            e.getImageInfo({
                                src: t,
                                success: function(e) {
                                    n(e);
                                },
                                fail: function(e) {
                                    o(e);
                                }
                            });
                        });
                    },
                    handlePreload: function() {
                        var e = this;
                        this.src && this._downloadImage(this.src).then(function(t) {
                            e.viewSrc = t.path, e.loading = !1, e.$emit("downloadSuccess", t), e.handleFadeIn();
                        }).catch(function(t) {
                            e.viewSrc = "", e.loading = !1, e.$emit("downloadFail", t);
                        });
                    }
                }
            };
        }).call(this, n("543d").default);
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/components/image-view/index-create-component", {
    "pages/components/image-view/index-create-component": function(e, t, n) {
        n("543d").createComponent(n("2ff9"));
    }
}, [ [ "pages/components/image-view/index-create-component" ] ] ]);